<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>PHPEMS模拟考试系统后台管理</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" type="text/css" href="app/core/styles/css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="app/core/styles/css/datetimepicker.css" />
	<link rel="stylesheet" type="text/css" href="app/core/styles/css/jquery-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="app/core/styles/css/peskin.css" />
	<!--[if lt IE 9]>
	<script src="app/core/styles/js/html5shiv.min.js"></script>
	<script src="app/core/styles/js/respond.min.js"></script>
	<![endif]-->
	<script src="app/core/styles/js/jquery.min.js"></script>
	<script src="app/core/styles/js/jquery-ui.min.js"></script>
	<script src="app/core/styles/js/bootstrap.min.js"></script>
	<script src="app/core/styles/js/bootstrap-datetimepicker.js"></script>

	<script src="app/core/styles/js/all.fine-uploader.min.js"></script>

	<script src="app/core/styles/js/ckeditor/ckeditor.js"></script>
	<script src="app/core/styles/js/plugin.js"></script>
</head><body>
<div class="container-fluid box" style="margin:0px auto;padding-top:10px;overflow:visible">	<div class="row-fluid">		<div class="main">			<div class="col-xs-10">				<h2 style="color:#337AB7;"><a href="index.php"><img src="app/core/styles/img/logo2.png" style="height:60px;margin-top:-10px;"/>&nbsp;PHPEMS管理平台</a></h2>			</div>			<div class="col-xs-2" style="padding-top:22px;">				<ul class="list-unstyled list-inline">										<li>						<div class="btn-group">							<button type="button" class="btn btn-info"><em class="glyphicon glyphglyphicon glyphicon-user"></em> peadmin</button>							<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">								<span class="caret"></span>								<span class="sr-only">Toggle Dropdown</span>							</button>							<ul class="dropdown-menu">								<li><a href="index.php?user-center"><em class="glyphicon glyphglyphicon glyphicon-user"></em> 用户中心</a></li>																<li><a href="index.php?core-master"><em class="glyphicon glyphglyphicon glyphicon-dashboard"></em> 后台管理</a></li>								<li><a class="ajax" href="index.php?user-app-logout"><em class="glyphicon glyphglyphicon glyphicon-log-out"></em> 退出</a></li>							</ul>						</div>					</li>									</ul>			</div>		</div>	</div></div><div class="container-fluid navbar" style="margin-top:0px;margin-bottom:0px;padding-top:10px;background-color:#337AB7;">	<div class="row-fluid">		<div class="main">			<div class="col-xs-12">				<ul class="list-unstyled list-inline">					<li class="menu col-xs-1">						<a href="index.php?core-master">全局</a>					</li>																				<li class="menu col-xs-1">						<a href="index.php?user-master">用户模块</a>					</li>																				<li class="menu col-xs-1 active">						<a href="index.php?exam-master">考试模块</a>					</li>																																								<li class="menu col-xs-1">						<a href="index.php?content-master">内容模块</a>					</li>																				<li class="menu col-xs-1">						<a href="index.php?bank-master">财务模块</a>					</li>																				<li class="menu col-xs-1">						<a href="index.php?course-master">课程模块</a>					</li>																			</ul>			</div>		</div>	</div></div><div class="container-fluid">
	<div class="row-fluid">
		<div class="main">
			<div class="col-xs-2" style="padding-top:10px;margin-bottom:0px;">
				<style>.panel-heading a{color:#FFFFFF;text-decoration:none;}</style><div class="panel-group" id="panel-13465">	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-707348">				<em class="glyphicon glyphglyphicon glyphicon-th-large"></em> 考试设计			</a>		</div>		<div id="panel-element-707348" class="panel-collapse collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="?exam-master-basic">考场列表</a></li>	    		<li class="list-group-item"><a href="?exam-master-basic-area">地区设置</a></li>	    		<li class="list-group-item"><a href="?exam-master-basic-subject">科目管理</a></li>	    		<li class="list-group-item"><a href="?exam-master-basic-questype">题型管理</a></li>			</ul>		</div>	</div>	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-2120761">				<em class="glyphicon glyphglyphicon glyphicon-user"></em> 课程开通			</a>		</div>		<div id="panel-element-2120761" class="panel-collapse collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="index.php?exam-master-users">开通课程</a></li>				<li class="list-group-item"><a href="index.php?exam-master-users-batopen">批量开通</a></li>			</ul>		</div>	</div>	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-212076">				<em class="glyphicon glyphglyphicon glyphicon-text-color"></em> 试题管理			</a>		</div>		<div id="panel-element-212076" class="panel-collapse collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="index.php?exam-master-questions">普通试题管理</a></li>				<li class="list-group-item"><a href="index.php?exam-master-rowsquestions">题帽题管理</a></li>				<li class="list-group-item"><a href="index.php?exam-master-feedback">错题反馈</a></li>			</ul>		</div>	</div>	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-212096">				<em class="glyphicon glyphglyphicon glyphicon-duplicate"></em> 试卷管理			</a>		</div>		<div id="panel-element-212096" class="panel-collapse in collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="index.php?exam-master-exams">试卷列表</a></li>				<li class="list-group-item"><a href="index.php?exam-master-exams-autopage">随机组卷</a></li>				<li class="list-group-item"><a href="index.php?exam-master-exams-selfpage">手工组卷</a></li>				<li class="list-group-item"><a href="index.php?exam-master-exams-temppage">即时组卷</a></li>			</ul>		</div>	</div>	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-212090">				<em class="glyphicon glyphglyphicon glyphicon-trash"></em> 回收站			</a>		</div>		<div id="panel-element-212090" class="panel-collapse collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="index.php?exam-master-recyle">普通试题</a></li>				<li class="list-group-item"><a href="index.php?exam-master-recyle-rows">题帽题</a></li>				<li class="list-group-item"><a href="index.php?exam-master-recyle-knows">知识点</a></li>			</ul>		</div>	</div>	<div class="panel panel-primary">		<div class="panel-heading">			<a class="panel-toggle text-center" data-parent="#panel-13465" data-toggle="collapse" href="#panel-element-2120901">				<em class="glyphicon glyphglyphicon glyphicon-wrench"></em> 批量工具			</a>		</div>		<div id="panel-element-2120901" class="panel-collapse collapse" role="tabpanel">     		<ul class="list-group">				<li class="list-group-item"><a href="index.php?exam-master-tools">删除试题</a></li>				<li class="list-group-item"><a href="index.php?exam-master-tools-clearhistory">清空考试记录</a></li>				<li class="list-group-item"><a href="index.php?exam-master-tools-clearsession">清理会话</a></li>			</ul>		</div>	</div></div>			</div>
			<div class="col-xs-10" id="datacontent">
				<div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
					<div class="col-xs-12">
						<ol class="breadcrumb">
							<li><a href="index.php?exam-master">考试模块</a></li>
							<li><a href="index.php?exam-master-exams&page=">试卷管理</a></li>
							<li class="active">随机组卷</li>
						</ol>
					</div>
				</div>
				<div class="box itembox" style="padding-top:10px;margin-bottom:0px;">
					<h4 class="title" style="padding:10px;">
						随机组卷
						<a class="btn btn-primary pull-right" href="index.php?exam-master-exams&page=">试卷管理</a>
					</h4>
			        <form action="index.php?exam-master-exams-autopage" method="post" class="form-horizontal">
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">试卷名称：</label>
					  		<div class="col-sm-4">
					  			<input class="form-control" type="text" name="args[exam]" value="" needle="needle" msg="您必须为该试卷输入一个名称"/>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">评卷方式</label>
							<div class="col-sm-9">
								<label class="radio-inline">
									<input name="args[examdecide]" type="radio" value="1"/>教师评卷
								</label>
								<label class="radio-inline">
									<input name="args[examdecide]" type="radio" value="0" checked/>学生自评
								</label>
								<span class="help-block">教师评卷时有主观题则需要教师在后台评分后才能显示分数，无主观题自动显示分数。</span>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">考试科目：</label>
						  	<div class="col-sm-4" style="width:25%">
							  	<select class="form-control combox" needle="needle" min="1" target="tablecontent"
								refurl="index.php?exam-master-exams-ajax-getsubjectknows&subjectid={value}" 
								name="args[examsubject]" msg="请选择科目" 
								onchange="javascript:loadsubjectsetting(this);">
								  	<option value="">请选择科目</option>
								  									  	<option value="1">演示课程</option>
								  									  	<option value="2">测试科目二</option>
								  									  	<option value="3">小学语文人教新课标</option>
								  								  	</select>
							</div>
							<div class="col-sm-4" style="width:25%">
							  	<select id="nianji" class="form-control combox" needle="needle" min="1" target="tablecontent"  name="args[section]" msg="请选择科目" onchange="javascript:loadsubjectsettings(this);">
								  	
								  	
								
								  
							  	</select>
							</div>
							<div class="col-sm-4" style="width:25%">
							  	<select id="zhangjie" class="form-control combox" needle="needle" min="1" target="tablecontent"  name="args[knows]" msg="请选择科目">
								  	
								  
							  	</select>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">考试时间：</label>
					  		<div class="col-sm-9 form-inline">
					  			<input class="form-control" type="text" name="args[examsetting][examtime]" value="60" size="4" needle="needle" class="inline"/> 分钟
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">来源：</label>
					  		<div class="col-sm-4">
					  			<input class="form-control" type="text" name="args[examsetting][comfrom]" value="" size="4"/>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">试卷总分：</label>
					  		<div class="col-sm-4">
					  			<input class="form-control" type="text" name="args[examsetting][score]" value="" size="4" needle="needle" msg="你要为本考卷设置总分" datatype="number"/>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2" for="content">及格线：</label>
					  		<div class="col-sm-4">
					  			<input class="form-control" type="text" name="args[examsetting][passscore]" value="" size="4" needle="needle" msg="你要为本考卷设置一个及格分数线" datatype="number"/>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">题型排序</label>
							<div class="col-sm-9">
								<div class="sortable btn-group">
																		<a class="btn btn-primary questpanel panel_1">单选题<input type="hidden" name="args[examsetting][questypelite][1]" class="questypepanelinput" id="panel_1" value="1"/></a>
																		<a class="btn btn-primary questpanel panel_2">多选题<input type="hidden" name="args[examsetting][questypelite][2]" class="questypepanelinput" id="panel_2" value="1"/></a>
																		<a class="btn btn-primary questpanel panel_3">判断题<input type="hidden" name="args[examsetting][questypelite][3]" class="questypepanelinput" id="panel_3" value="1"/></a>
																		<a class="btn btn-primary questpanel panel_4">定值填空<input type="hidden" name="args[examsetting][questypelite][4]" class="questypepanelinput" id="panel_4" value="1"/></a>
																		<a class="btn btn-primary questpanel panel_5">填空题<input type="hidden" name="args[examsetting][questypelite][5]" class="questypepanelinput" id="panel_5" value="1"/></a>
																		<a class="btn btn-primary questpanel panel_6">问答题<input type="hidden" name="args[examsetting][questypelite][6]" class="questypepanelinput" id="panel_6" value="1"/></a>
																	</div>
								<span class="help-block">拖拽进行题型排序</span>
							</div>
						</div>
						<div class="form-group">
					        <label class="control-label col-sm-2">题量配比模式：</label>
				          	<div class="col-sm-9">
								<label class="radio-inline">
					          		<input type="radio" class="form-control" name="args[examsetting][scalemodel]" value="1" onchange="javascript:$('#modeplane').html($('#sptype').html());$('#modeplane').find('.selfmodal').on('click',modalAjax);"/> 开启
					          	</label>
					          	<label class="radio-inline">
					          		<input type="radio" class="form-control" name="args[examsetting][scalemodel]" value="0" onchange="javascript:$('#modeplane').html($('#normaltype').html());" checked/> 关闭
					          	</label>
					       </div>
					    </div>
					    <div id="modeplane">
					    								<div class="form-group questpanel panel_1">
								<label class="control-label col-sm-2" for="content">单选题：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_1" type="text" class="form-control" needle="needle" name="args[examsetting][questype][1][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][1][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][1][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][1][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][1][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][1][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
														<div class="form-group questpanel panel_2">
								<label class="control-label col-sm-2" for="content">多选题：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_2" type="text" class="form-control" needle="needle" name="args[examsetting][questype][2][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][2][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][2][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][2][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][2][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][2][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
														<div class="form-group questpanel panel_3">
								<label class="control-label col-sm-2" for="content">判断题：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_3" type="text" class="form-control" needle="needle" name="args[examsetting][questype][3][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][3][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][3][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][3][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][3][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][3][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
														<div class="form-group questpanel panel_4">
								<label class="control-label col-sm-2" for="content">定值填空：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_4" type="text" class="form-control" needle="needle" name="args[examsetting][questype][4][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][4][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][4][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][4][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][4][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][4][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
														<div class="form-group questpanel panel_5">
								<label class="control-label col-sm-2" for="content">填空题：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_5" type="text" class="form-control" needle="needle" name="args[examsetting][questype][5][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][5][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][5][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][5][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][5][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][5][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
														<div class="form-group questpanel panel_6">
								<label class="control-label col-sm-2" for="content">问答题：</label>
								<div class="col-sm-9 form-inline">
									<span class="info">共&nbsp;</span>
									<input id="iselectallnumber_6" type="text" class="form-control" needle="needle" name="args[examsetting][questype][6][number]" value="0" size="1" msg="您必须填写总题数"/>
									<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][6][score]" value="0" size="1" msg="您必须填写每题的分值"/>
									<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][6][describe]" value="" size="10"/>
									<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][6][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
			  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][6][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
			  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][6][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
								</div>
							</div>
												    </div>
						<div class="form-group">
							<label class="control-label col-sm-2"></label>
							<div class="col-sm-9">
								<button class="btn btn-primary" type="submit">提交</button>
								<input type="hidden" name="submitsetting" value="1"/>
							</div>
						</div>
					</form>
					<div id="sptype" class="hide">
					    <div class="form-group">
					        <label class="control-label col-sm-2">题量配比：</label>
				          	<div class="col-sm-9">
					          	<label class="radio inline">题量配比模式关闭时，此设置不生效。题量配比操作繁琐，请尽量熟悉后再行操作。</label>
					       </div>
					    </div>
					    						<div class="form-group questpanel panel_1">
							<label class="control-label col-sm-2" for="content">单选题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_1" type="text" class="form-control" needle="needle" name="args[examsetting][questype][1][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][1][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][1][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_1';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_1').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_1}&useframe=1" valuefrom="examscale_1">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_1">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_1" cols="4" name="args[examsetting][examscale][1]"></textarea>
							</div>
						</div>
												<div class="form-group questpanel panel_2">
							<label class="control-label col-sm-2" for="content">多选题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_2" type="text" class="form-control" needle="needle" name="args[examsetting][questype][2][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][2][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][2][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_2';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_2').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_2}&useframe=1" valuefrom="examscale_2">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_2">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_2" cols="4" name="args[examsetting][examscale][2]"></textarea>
							</div>
						</div>
												<div class="form-group questpanel panel_3">
							<label class="control-label col-sm-2" for="content">判断题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_3" type="text" class="form-control" needle="needle" name="args[examsetting][questype][3][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][3][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][3][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_3';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_3').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_3}&useframe=1" valuefrom="examscale_3">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_3">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_3" cols="4" name="args[examsetting][examscale][3]"></textarea>
							</div>
						</div>
												<div class="form-group questpanel panel_4">
							<label class="control-label col-sm-2" for="content">定值填空：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_4" type="text" class="form-control" needle="needle" name="args[examsetting][questype][4][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][4][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][4][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_4';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_4').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_4}&useframe=1" valuefrom="examscale_4">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_4">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_4" cols="4" name="args[examsetting][examscale][4]"></textarea>
							</div>
						</div>
												<div class="form-group questpanel panel_5">
							<label class="control-label col-sm-2" for="content">填空题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_5" type="text" class="form-control" needle="needle" name="args[examsetting][questype][5][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][5][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][5][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_5';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_5').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_5}&useframe=1" valuefrom="examscale_5">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_5">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_5" cols="4" name="args[examsetting][examscale][5]"></textarea>
							</div>
						</div>
												<div class="form-group questpanel panel_6">
							<label class="control-label col-sm-2" for="content">问答题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_6" type="text" class="form-control" needle="needle" name="args[examsetting][questype][6][number]" value="0" size="2" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][6][score]" value="0" size="2" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][6][describe]" value="" size="12"/>
								<a href="javascript:;" onclick="javascript:currentP = 'examscale_6';$('#tablecontent').find(':checkbox').attr('checked',false);$('#modal').modal();" class="btn btn-primary">配题</a>
								<a href="javascript:;" onclick="javascript:$('#examscale_6').val('');" class="btn btn-danger">重置</a>
								<a class="btn btn-info selfmodal" href="javascript:;" data-target="#modal2" url="index.php?exam-master-exams-showsetting&setting={examscale_6}&useframe=1" valuefrom="examscale_6">检查</a>
							</div>
						</div>
						<div class="form-group questpanel panel_6">
							<label class="control-label col-sm-2" for="content">配比率：</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="7" id="examscale_6" cols="4" name="args[examsetting][examscale][6]"></textarea>
							</div>
						</div>
											</div>
					<div id="normaltype" class="hide">
												<div class="form-group questpanel panel_1">
							<label class="control-label col-sm-2" for="content">单选题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_1" type="text" class="form-control" needle="needle" name="args[examsetting][questype][1][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][1][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][1][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][1][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][1][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][1][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
												<div class="form-group questpanel panel_2">
							<label class="control-label col-sm-2" for="content">多选题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_2" type="text" class="form-control" needle="needle" name="args[examsetting][questype][2][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][2][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][2][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][2][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][2][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][2][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
												<div class="form-group questpanel panel_3">
							<label class="control-label col-sm-2" for="content">判断题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_3" type="text" class="form-control" needle="needle" name="args[examsetting][questype][3][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][3][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][3][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][3][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][3][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][3][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
												<div class="form-group questpanel panel_4">
							<label class="control-label col-sm-2" for="content">定值填空：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_4" type="text" class="form-control" needle="needle" name="args[examsetting][questype][4][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][4][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][4][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][4][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][4][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][4][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
												<div class="form-group questpanel panel_5">
							<label class="control-label col-sm-2" for="content">填空题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_5" type="text" class="form-control" needle="needle" name="args[examsetting][questype][5][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][5][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][5][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][5][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][5][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][5][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
												<div class="form-group questpanel panel_6">
							<label class="control-label col-sm-2" for="content">问答题：</label>
							<div class="col-sm-9 form-inline">
								<span class="info">共&nbsp;</span>
								<input id="iselectallnumber_6" type="text" class="form-control" needle="needle" name="args[examsetting][questype][6][number]" value="0" size="1" msg="您必须填写总题数"/>
								<span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[examsetting][questype][6][score]" value="0" size="1" msg="您必须填写每题的分值"/>
								<span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][6][describe]" value="" size="10"/>
								<span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[examsetting][questype][6][easynumber]" value="0" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  						<span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][6][middlenumber]" value="0" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  						<span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[examsetting][questype][6][hardnumber]" value="0" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
							</div>
						</div>
											</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="modal2" class="modal fade">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button aria-hidden="true" class="close" type="button" data-dismiss="modal">×</button>
				<h4 id="myModalLabel">
					配置详情
				</h4>
			</div>
			<div class="modal-body" id="modal-body"></div>
			<div class="modal-footer">
				 <button aria-hidden="true" class="btn btn-primary" data-dismiss="modal">完成</button>
			</div>
		</div>
	</div>
</div>
<div id="modal" class="modal fade">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button aria-hidden="true" class="close" type="button" data-dismiss="modal">×</button>
				<h4 id="myModalLabel">
					配题
				</h4>
			</div>
			<div class="modal-body">
				<div action="#" method="post" class="form-horizontal">
					<div class="form-group" style="max-height:240px;overflow-y:scroll;" id="tablecontent">
						<table class="table table-hover table-bordered" style="width:86%;margin:auto;">
							<tr class="info">
								<td colspan="3">请先选择科目</td>
							</tr>
						</table>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2" for="content">题量：</label>
				  		<div class="col-sm-10 form-inline">
				  			<span class="info">共&nbsp;</span>
							<input id="modalallnumber" type="text" class="form-control" needle="needle" value="10" size="1" msg="您必须填写总题数"/>
							<span class="info">&nbsp;易&nbsp;</span><input id="modaleasynumber" class="form-control" type="text" value="3" size="1" msg="您需要填写简单题的数量，最小为0"/>
		  					<span class="info">&nbsp;中&nbsp;</span><input id="modalmidnumber" class="form-control" type="text" needle="needle" value="4" size="1" msg="您需要填写中等难度题的数量，最小为0"/>
		  					<span class="info">&nbsp;难&nbsp;</span><input id="modalhardnumber" class="form-control" type="text" needle="needle" value="3" size="1" datatype="number" msg="您需要填写难题的数量，最小为0"/>
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				 <button class="btn btn-primary" type="button" onclick="javascript:confirmRules();">增加规则</button>
				 <button aria-hidden="true" class="btn btn-danger" data-dismiss="modal">放弃</button>
			</div>
		</div>
	</div>
</div>
<script>
function loadsubjectsetting(obj)
{
	
    $.getJSON(
	'index.php?exam-master-basic-getsection&subjectid='+$(obj).val(),
	function(data)
	{
	//alert(data);
	 var html = '<option value="">请选择年级</option>';
	for(x in data){
	//alert(data[x].sectionid);
	
	html+='<option value="'+data[x].sectionid+'">'+data[x].section+'</option>';
	}
	$("#nianji").empty();
	 $('#nianji').append(html);
	//alert(html);
	}
	);
	}
	function loadsubjectsettings(obj)
{
	
    $.getJSON(
	
	'index.php?exam-master-basic-getpoint&sectionid='+$(obj).val(),
	function(data)
	{
	//alert(data);
	 var html = '<option value="">请选择章节</option>';
	for(x in data){
	//alert(data[x].sectionid);
	
	html+='<option value="'+data[x].knowsid+'">'+data[x].knows+'</option>';
	}
	$("#zhangjie").empty();
	 $('#zhangjie').append(html);
	//alert(html);
	}
	);
	}
	
function confirmRules()
{
	var knows = '';
	$('#tablecontent').find(':checked').each(function(){
		knows = knows + $(this).val() + ',';});
	knows = knows.substring(0,knows.length - 1);
	var allnumber = parseInt($('#modalallnumber').val());
	var easynumber = parseInt($('#modaleasynumber').val());
	var midnumber = parseInt($('#modalmidnumber').val());
	var hardnumber = parseInt($('#modalhardnumber').val());
	var pnumber = '';
	if(easynumber == 0 && midnumber == 0 && hardnumber == 0)
	pnumber = '0';
	else
	pnumber = easynumber + ',' + midnumber + ',' + hardnumber;
	$('#'+currentP).val($('#'+currentP).val()+knows+':'+allnumber+':'+pnumber+'\n');
	$('#modal').modal('hide');
}
</script>
<div class="container-fluid box" style="background-color:#337AB7;margin-bottom:0px;" id="footer">
	<div class="row-fluid">
		<div class="main itembox">
			<div class="col-xs-12">
				<ul class="list-unstyled">
					<li class="text-center"><a href="">PHPEMS在线模拟考试系统 著作权登记号：2013 SR 113189</a></li>
					<li class="text-center"><a href="">Copyright © phpems.net  2015-2016</a></li>
				</ul>
			</div>
		</div>
	</div>
</div></body>
</html>
